


all : run-backend

clean:
	rm -rf bin/*

clean-backend:
	rm -rf bin/ai.exe

tidy:
	go mod tidy

swagger:
	swag init -d internal/handlers -g router.go -o docs --parseDependency --parseInternal

build-backend: tidy
	go build -o bin/ai.exe cmd/ai/main.go

run-backend: build-backend
	bin/ai.exe run

build-frontend:
	cd AI-Trainer && npm run build

run-frontend:
	cd AI-Trainer && npm run dev

